package com.yjx.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjx.gulimall.common.utils.PageUtils;
import com.yjx.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhuyingcoder
 * @email 1210736981@qq.com
 * @date 2022-01-23 12:30:16
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有菜单，并且对菜单进行分类
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 批量删除菜单
     * @param list
     */
    void removeMenuByIds(List<Long> list);

    /**
     *
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

